Integrand size = 21, antiderivative size = 51 \[ \int \cot (c+d x) \sqrt {a+a \sin (c+d x)} \, dx=-\frac {2 \sqrt {a} \text {arctanh}\left (\frac {\sqrt {a+a \sin (c+d x)}}{\sqrt {a}}\right )}{d}+\frac {2 \sqrt {a+a \sin (c+d x)}}{d} \]
[Out]
Time = 0.04 (sec) , antiderivative size = 51, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {2786, 52, 65, 213} \[ \int \cot (c+d x) \sqrt {a+a \sin (c+d x)} \, dx=\frac {2 \sqrt {a \sin (c+d x)+a}}{d}-\frac {2 \sqrt {a} \text {arctanh}\left (\frac {\sqrt {a \sin (c+d x)+a}}{\sqrt {a}}\right )}{d} \]
[In]
[Out]
Rule 52
Rule 65
Rule 213
Rule 2786
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \frac {\sqrt {a+x}}{x} \, dx,x,a \sin (c+d x)\right )}{d} \\ & = \frac {2 \sqrt {a+a \sin (c+d x)}}{d}+\frac {a \text {Subst}\left (\int \frac {1}{x \sqrt {a+x}} \, dx,x,a \sin (c+d x)\right )}{d} \\ & = \frac {2 \sqrt {a+a \sin (c+d x)}}{d}+\frac {(2 a) \text {Subst}\left (\int \frac {1}{-a+x^2} \, dx,x,\sqrt {a+a \sin (c+d x)}\right )}{d} \\ & = -\frac {2 \sqrt {a} \text {arctanh}\left (\frac {\sqrt {a+a \sin (c+d x)}}{\sqrt {a}}\right )}{d}+\frac {2 \sqrt {a+a \sin (c+d x)}}{d} \\ \end{align*}
Time = 0.14 (sec) , antiderivative size = 48, normalized size of antiderivative = 0.94 \[ \int \cot (c+d x) \sqrt {a+a \sin (c+d x)} \, dx=\frac {2 \left (-\sqrt {a} \text {arctanh}\left (\frac {\sqrt {a (1+\sin (c+d x))}}{\sqrt {a}}\right )+\sqrt {a (1+\sin (c+d x))}\right )}{d} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(132\) vs. \(2(43)=86\).
Time = 0.19 (sec) , antiderivative size = 133, normalized size of antiderivative = 2.61
method | result | size |
derivativedivides | \(-\frac {\sqrt {\frac {a \left (\csc \left (d x +c \right )+1\right )}{\csc \left (d x +c \right )}}\, \left (\ln \left (\frac {1}{2}+\csc \left (d x +c \right )+\sqrt {\csc ^{2}\left (d x +c \right )+\csc \left (d x +c \right )}\right ) \left (\csc ^{2}\left (d x +c \right )\right )-2 \left (\csc ^{2}\left (d x +c \right )+\csc \left (d x +c \right )\right )^{\frac {3}{2}}+2 \sqrt {\csc ^{2}\left (d x +c \right )+\csc \left (d x +c \right )}\, \left (\csc ^{2}\left (d x +c \right )\right )\right )}{d \csc \left (d x +c \right ) \sqrt {\csc \left (d x +c \right ) \left (\csc \left (d x +c \right )+1\right )}}\) | \(133\) |
default | \(-\frac {\sqrt {\frac {a \left (\csc \left (d x +c \right )+1\right )}{\csc \left (d x +c \right )}}\, \left (\ln \left (\frac {1}{2}+\csc \left (d x +c \right )+\sqrt {\csc ^{2}\left (d x +c \right )+\csc \left (d x +c \right )}\right ) \left (\csc ^{2}\left (d x +c \right )\right )-2 \left (\csc ^{2}\left (d x +c \right )+\csc \left (d x +c \right )\right )^{\frac {3}{2}}+2 \sqrt {\csc ^{2}\left (d x +c \right )+\csc \left (d x +c \right )}\, \left (\csc ^{2}\left (d x +c \right )\right )\right )}{d \csc \left (d x +c \right ) \sqrt {\csc \left (d x +c \right ) \left (\csc \left (d x +c \right )+1\right )}}\) | \(133\) |
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 86, normalized size of antiderivative = 1.69 \[ \int \cot (c+d x) \sqrt {a+a \sin (c+d x)} \, dx=\frac {\sqrt {a} \log \left (\frac {a \cos \left (d x + c\right )^{2} + 4 \, \sqrt {a \sin \left (d x + c\right ) + a} \sqrt {a} {\left (\sin \left (d x + c\right ) + 2\right )} - 8 \, a \sin \left (d x + c\right ) - 9 \, a}{\cos \left (d x + c\right )^{2} - 1}\right ) + 4 \, \sqrt {a \sin \left (d x + c\right ) + a}}{2 \, d} \]
[In]
[Out]
\[ \int \cot (c+d x) \sqrt {a+a \sin (c+d x)} \, dx=\int \sqrt {a \left (\sin {\left (c + d x \right )} + 1\right )} \cos {\left (c + d x \right )} \csc {\left (c + d x \right )}\, dx \]
[In]
[Out]
none
Time = 0.30 (sec) , antiderivative size = 61, normalized size of antiderivative = 1.20 \[ \int \cot (c+d x) \sqrt {a+a \sin (c+d x)} \, dx=\frac {\sqrt {a} \log \left (\frac {\sqrt {a \sin \left (d x + c\right ) + a} - \sqrt {a}}{\sqrt {a \sin \left (d x + c\right ) + a} + \sqrt {a}}\right ) + 2 \, \sqrt {a \sin \left (d x + c\right ) + a}}{d} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 89 vs. \(2 (43) = 86\).
Time = 0.47 (sec) , antiderivative size = 89, normalized size of antiderivative = 1.75 \[ \int \cot (c+d x) \sqrt {a+a \sin (c+d x)} \, dx=\frac {\sqrt {2} {\left (\sqrt {2} \log \left (\frac {{\left | -2 \, \sqrt {2} + 4 \, \cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}}{{\left | 2 \, \sqrt {2} + 4 \, \cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}}\right ) + 4 \, \cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} \sqrt {a} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}{2 \, d} \]
[In]
[Out]
Time = 10.58 (sec) , antiderivative size = 43, normalized size of antiderivative = 0.84 \[ \int \cot (c+d x) \sqrt {a+a \sin (c+d x)} \, dx=\frac {2\,\sqrt {a+a\,\sin \left (c+d\,x\right )}}{d}-\frac {2\,\sqrt {a}\,\mathrm {atanh}\left (\frac {\sqrt {a+a\,\sin \left (c+d\,x\right )}}{\sqrt {a}}\right )}{d} \]
[In]
[Out]